'use strict';
function form(){
    return function(obj){
        var h = "表单 "+obj.$name+"错误详情" ;
        for (var i in obj){ if( i.indexOf("$") < 0 ){
            h+="\r\n("+i+" = ";
            if( obj[i].$error ){ h+=JSON.stringify(obj[i].$error)+")" }
            else { h+="-)" }
        } }
        return h;
    }
}
exports = module.exports = form;